<?php namespace system\model;

use hdphp\model\Model;

/**
 * 微信菜单管理
 * Class Button
 * @package system\model
 */
class Button extends Model {
	protected $table = 'button';
	protected $validate
	                 = [
			[ 'data', 'required', '标题不能为空', self::MUST_VALIDATE, self::MODEL_BOTH ],
            [ 'name', 'required', '菜单名称不能为空', self::MUST_VALIDATE, self::MODEL_BOTH ]


        ];
	protected $auto
	                 = [
			[ 'status', 0, 'string', self::EMPTY_AUTO, self::MODEL_INSERT ],
		];
}